@spineThickness: 20mm;

.print-content {
  /* 设置整个表格容器的样式 */
  /* 例如背景色、边距等 */
  background-color: #fff;
  position: relative;
  width:99%;
  page-break-after: always;

  .title {
    width: 100% !important;
    text-align: center;
    zoom: 2;
    margin-bottom: -5px;
  }

  .page {
    text-align: right;
    span + span {
      margin-left: 16px;
    }
  }

  .custom-table {
    /* 设置表格的样式 */
    border-collapse: collapse; /* 合并边框 */
    width: 100% !important;
    border: 2px solid black; /* 添加黑色边框 */

    th,
    td {
      /* 设置表头和单元格的样式 */
      border: 1px solid black; /* 添加黑色边框 */
      padding: 8px; /* 添加内边距 */
    }

    th {
      background-color: #fff; /* 表头背景色 */
    }

    tr {
      height: 40px !important;
    }
  }
}

.print-cover {
  width: 100% !important;
  height: 700px !important;
  position: relative;
  zoom: 1.5;
  page-break-after: always;

  .text-row {
    position: relative;

    .text-label {
      margin-bottom: 20px;
    }

    .letter {
      letter-spacing: 30px;
    }

    .text-underline {
      border-bottom: 0.5px solid #000;
      position: absolute;
      left: 80px;
      width: 200px !important;
      margin-bottom: 20px !important;
    }
  }

  .text-top {
    position: absolute;
    left: 40px;
    top: 60px;
  }

  .text-bottom {
    position: absolute;
    bottom: 0;
    left: 60px;

    .text-underline {
      width: 300px !important;
    }
  }
}

.print-back {
  width: 100% !important;
  height: 100% !important;
  text-align: center !important;

  .print-box {
    width: @spineThickness !important;
    height: 842px !important;
    border: 1px solid black;
    display: flex;
    flex-direction: column;
    align-items: center;
    page-break-after: always;
    text-align: center;
    margin: 60px auto;

    .img-warpper {
      width: 100%;
      display: flex;
      justify-content: center;
      padding-top: 22px;
      padding-bottom: 30px;
      border-bottom: 1px solid black;
      img {
        width: calc(@spineThickness * 0.6);
      }
    }

    .center-warpper {
      width: 100%;
      padding: 10px 0 70px;
      border-bottom: 2px solid black;
      position: relative;

      span + span {
        width: @spineThickness !important;
        display: block !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 50px;
        overflow-wrap: break-word;
      }
    }

    .box-warpper {
      width: 100%;
      margin-top: 5px;
      border-top: 1px solid black;
      padding-bottom: 150px;
      position: relative;

      .box-title {
        line-height: 40px;
        border-bottom: 1px solid black;
        display: flex;
        justify-content: center;
      }

      .box-letter {
        letter-spacing: calc(@spineThickness * 0.14);
        padding-left: calc(@spineThickness * 0.14);
      }

      div + div {
        width: @spineThickness !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 80px;
        overflow-wrap: break-word;
        padding: 0 5px;
      }
    }

    .box-under {
      border-bottom: 1px solid black;
      padding-bottom: 300px;
    }

    .bottom-warpper {
      width: 100%;
      margin-top: 5px;
      border-top: 2px solid black;
    }
  }
}

@page {
  margin: 0; /* 去掉默认页边距 */
}

@media print {
  /* 隐藏页眉 */
  .print-header {
    display: none !important;
  }

  /* 隐藏页脚 */
  .print-footer {
    display: none !important;
  }
}
